package edu.nctu.csie.jichang.database.app;

import java.util.ArrayList;
import java.util.List;

import edu.nctu.csie.jichang.database.create.CreateData;
import edu.nctu.csie.jichang.database.dbinfo.DataBaseInfo;
import edu.nctu.csie.jichang.database.dbinfo.LoginInfo;
import edu.nctu.csie.jichang.database.model.cell.ColumnInfoValue;
import edu.nctu.csie.jichang.database.model.cell.ColumnType;
import edu.nctu.csie.jichang.database.model.cell.SchemaTable;

public class DBCreateData {

	public static void main(String[] args) throws Exception{

		DataBaseInfo tDataBaseInfo = new DataBaseInfo(DataBaseInfo.TYPE_SQLSERVER,"sa","123456","127.0.0.1","1433");
		LoginInfo tLoginInfos      = new LoginInfo(tDataBaseInfo,"ienc_system");
		
		for (int i = 1; i <= 1; i++) {
			List<ColumnInfoValue> tCondition = new ArrayList<ColumnInfoValue>();
			tCondition.add(new ColumnInfoValue("_name",ColumnType.String,"Test Schedule "+i));
			new CreateData(new SchemaTable(tLoginInfos.getSchema(), "c_schedule"),tCondition,tLoginInfos).start();
		}
		
	}
}
